// text
$color_black: #000000;
$color_black_light: #333;
$color_grey: #666;
$color_yellow: #fac200;
$color_yellow_light: #ffdd00;
$color_red: #ff4f4f;
// label
$color_violet: #5a68d1;
$bg_color: #f8f8f8;
$bg_item: #fff;
// line color
$line_color: #e8e8e8;
em {
    font-style: normal;
    font-weight: normal;
}

.txt-yellow,
.txt-red {
    padding-left: rem(10px);
}

.txt-yellow {
    color: $color_yellow;
    padding-right: rem(20px);
}

.txt-red {
    color: $color_red;
}

.btn {
    font-size: rem(26px);
    padding: 0 rem(30px);
    color: $color_black_light;
    text-decoration: none;
    display: block;
    &.btn-def {
        height: rem(54px);
        line-height: rem(54px);
        position: relative;
        &:before {
            position: absolute;
            top: 0;
            left: 0;
            display: block;
            content: "";
            border: 1px solid #bbb;
            width: 200%;
            height: 200%;
            transform: scale(.5);
            transform-origin: 0 0;
            border-radius: 3px;
        }
    }
    &.btn-yel {
        height: rem(56px);
        line-height: rem(56px);
        background: $color_yellow_light;
        border-radius: 1px;
        &:active {
            background-color: #ffc600;
        }
    }
}

body {
    background: $bg_color;
}

.container {
    padding-top: rem(16px);
}

.item {
    background: $bg_item;
    margin-bottom: rem(16px);
    position: relative;
    &:before {
        position: absolute;
        display: block;
        content: "";
        border-top: 1px solid $line_color;
        transform: scaleY(.5);
        left: 0;
        right: 0;
        top: 0
    }
    &:after {
        position: absolute;
        display: block;
        content: "";
        border-top: 1px solid $line_color;
        transform: scaleY(.5);
        left: 0;
        right: 0;
        bottom: 0
    }
    >div {
        padding: 0 rem(24px);
    }
}

.info {
    display: flex;
    height: rem(140px);
    align-items: center;
    justify-content: space-between;
    .portrait {
        width: rem(96px);
        height: rem(96px);
        border-radius: rem(96px);
        overflow: hidden;
        img {
            width: 100%;
        }
    }
    .info-txt {
        flex: 0 0 rem(400px);
        h3 {
            font-size: rem(32px);
            color: $color_black;
        }
        p {
            font-size: rem(24px);
            color: $color_grey;
            padding-top: rem(10px)
        }
    }
    .name {
        display: flex;
        align-items: center;
        em {
            display: block;
            font-weight: lighter;
            color: $color_violet;
            font-size: rem(20px);
            border: 1px solid $color_violet;
            border-radius: rem(10px);
            padding: 0 rem(5px);
            margin-left: rem(10px);
        }
    }
}

.rank {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: rem(26px);
    height: rem(88px);
    position: relative;
    &:before {
        position: absolute;
        display: block;
        content: "";
        border-top: 1px solid $line_color;
        transform: scaleY(.5);
        left: 0;
        right: 0;
        top: 0
    }
    >div {
        display: flex;
        align-items: center;
        a {
            margin-left: rem(20px);
        }
    }
}

.tips {
    font-size: rem(24px);
    color: $color_grey;
    padding: rem(24px);
    position: fixed;
    bottom: 0;
    p {
        padding-bottom: rem(10px);
    }
}

.navigator {
    position: relative;
    height: rem(88px);
    text-align: center;
    line-height: rem(88px);
    background: #fff;
    &:after {
        position: absolute;
        display: block;
        content: '';
        border-bottom: 1px solid #e8e8e8;
        transform: scaleY(.5);
        bottom: 0;
        left: 0;
        right: 0;
    }
    .back {
        position: absolute;
        left: 0;
        top: 0;
        width: rem(80px);
        height: rem(88px);
        background-image: url(../images/btn-back.png);
        background-repeat: no-repeat;
        background-size: rem(43px) rem(36px);
        background-position: center;
    }
    .title {
        font-size: rem(32px);
        text-align: center;
        font-weight: bold;
    }
}
